package com.xs.operator;


import java.util.Scanner;

public class operatorDemo4 {

    public static void main(String[] args) {
        int a=3456;
        Scanner scanner=new Scanner(System.in);
       while (true){
           System.out.println("请输入密码：");
          int b=scanner.nextInt();
           if (a == b){
               System.out.println("密码正确，准备返回页面");
               break;
           }
           else {
               System.out.println("密码错误");
               System.out.println("------------------------------");
           }
       }

    }
}
